<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
	<jsp:include page="${ctx }/WEB-INF/view/meta.jsp"></jsp:include>
	<script type="text/javascript" src="${ctx}/resource/js/user/login.js?r=${random}"></script>
</head>
<body>
<div id="login-pannel">
	<div class="easyui-panel" data-options="title:'登录'" 
		style="width: 280px; padding: 20px;">
		<form id="login-form" action="/login" method="post">
		<table cellpadding="5">
		    <c:if test="${!empty msg }">
		      <tr>
				<td colspan="2" style="color:red">${msg}</td>
			 </tr>
		    </c:if>
		    <c:if test="${empty msg }">
		      <tr>
				<td colspan="2" style="color:red"></td>
			 </tr>
		    </c:if>
			<tr>
				<td>账号：</td>
				<td><input name="username" class="easyui-textbox search-input" data-options="required:true"></td>
			</tr>
			<tr>
				<td>密码：</td>
				<td><input name="password" type="password" class="easyui-textbox search-input" data-options="required:true"></td>
			</tr>
			<tr>
				<td colspan="2">
					<a href="javascript:Login.login()" class="easyui-linkbutton search-button">登录</a>
					<a href="javascript:Login.reset()" class="easyui-linkbutton search-button">清空</a>
				</td>
			</tr>
		</table>
		</form>
	</div>
</div>
</body>
</html>